package com.module.overview.ui.widget;

import android.view.MotionEvent;

/**
 * 手势监听 for HorizontalWheelView
 */
public final class HorizontalLoopViewGestureListener extends android.view.GestureDetector.SimpleOnGestureListener {

    private final HorizontalWheelView wheelView;

    public HorizontalLoopViewGestureListener(HorizontalWheelView wheelView) {
        this.wheelView = wheelView;
    }

    @Override
    public final boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
        wheelView.scrollBy(velocityX);
        return true;
    }
} 